using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Security;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Ample.BLL.Store;
using Ample.Model;

public partial class EditOrder_Page : BasePage
{
  protected void Page_Load(object sender, EventArgs e)
  {

  }

  protected void objCurrOrder_Updating(object sender, ObjectDataSourceMethodEventArgs e)
  {
      if(e.InputParameters[0] != null && e.InputParameters.Count > 0)
      {
          DropDownList ddlOrderStatuses = (DropDownList)(dvwOrder.Rows[6].Cells[0]).FindControl("ddlOrderStatuses");
          Order o = e.InputParameters[0] as Order;

          OrderStatus os = new OrderStatus { AddedBy = Profile.UserName, AddedDate = DateTime.Now, Status = ddlOrderStatuses.SelectedValue.ToString() };
          os.Order = o;
      }
  }
}